home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Moscow ML 1.31 / source code / mosml / src / mosmllib / Miscoldb.sig < prev    next >
Encoding:
Text File  |  1996-07-03  |  1.1 KB  |  42 lines  |  [TEXT/R*ch]

  1. (* Miscoldb -- 1995-08-25.  Top-level compatility with the Definition *)
  2.  
  3. (* These functions really belong in General, but can appear there only 
  4.    if defined in the runtime system.  So for now they are here.
  5.  *)
  6.  
  7. val o : ('b -> 'c) * ('a -> 'b) -> 'a -> 'c
  8. val before : ('a * unit) -> 'a
  9.  
  10. val chr : int -> string
  11. val ord : string -> int
  12.  
  13. val explode : string -> string list
  14. val implode : string list -> string
  15. val str     : char -> string
  16. val concat  : string list -> string
  17.  
  18. exception Empty;
  19.  
  20. val @          : 'a list * 'a list -> 'a list
  21. val app        : ('a -> unit) -> 'a list -> unit
  22. val foldl      : ('a * 'b -> 'b) -> 'b -> 'a list -> 'b
  23. val foldr      : ('a * 'b -> 'b) -> 'b -> 'a list -> 'b
  24. val hd         : 'a list -> 'a                        (* Empty     *)
  25. val length     : 'a list -> int 
  26. val map        : ('a -> 'b) -> 'a list -> 'b list
  27. val null       : 'a list -> bool
  28. val rev        : 'a list -> 'a list 
  29. val tl         : 'a list -> 'a list                   (* Empty     *)
  30.  
  31. val vector     : 'a list -> 'a vector
  32.  
  33. exception Abs  
  34.       and Diff 
  35.       and Exp  
  36.       and Floor
  37.       and Neg  
  38.       and Prod 
  39.       and Sum  
  40.       and Mod  
  41.       and Quot;
  42.